package Thread;

import java.util.Scanner;

public class ThreadTimeDemo01 {
    static int count;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        new Thread(()->{
            while(true){
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                count++;
                if(count == num){
                    break;
                }
            }
        }) ;

    }
}
